 #{extends 'frameHome.html' /}#{set title:'Requests' /}
<head>



</head>

<h3>Accept or Reject Request for a Topic</h3>

<form name=AcceptRequest
	action="@{Topics.createTopic(entityId, requestTopic.id)}" method="POST">

	<form name=AcceptRequest
		action="@{Topics.createTopic(requestTopic.entityRequest.id, requestTopic.id)}"
		method="POST">

		<div class="content">
			<div class="row">
				<div class="left">Title*</div>
				<div class="right">
					<input type="text" name="topic.title" size='25' required
						value=${requestTopic.title}>
				</div>
				<div class="clear"></div>
			</div>

			<div class="row">
				<div class="left">Body</div>
				<div class="right">
					<textarea rows="10" cols="50" name="topic.body" required>${requestTopic.body}</textarea>
				</div>
				<div class="clear"></div>
			</div>



			<input type="submit" name="Post" value="Publish as Topic" /> <input type="submit"
				name="save" formaction='@{DraftController.saveTopicAsDraft()}'
				value="Save to Drafts" /><br></br>
				<a href="@{Entity.viewEntity(entityId)}"
				class="button">Go Back</a> 
				<a
				href="@{Requests.rejectTopicRequest(requestTopic.id,entityId)}"
				class="button">Reject</a>
	</form>




	<p>*All Fields are Required</p>